import request from '@/utils/request'

// 查询LogisticDetail列表
export function listLogisticDetail(query) {
  return request({
    url: '/LogisticDetail/list',
    method: 'get',
    params: query
  })
}

// 查询LogisticDetail详细
export function getLogisticDetail(logisticNo) {
  return request({
    url: '/LogisticDetail/' + logisticNo,
    method: 'get'
  })
}

// 新增LogisticDetail
export function addLogisticDetail(data) {
  return request({
    url: '/LogisticDetail',
    method: 'post',
    data: data
  })
}

// 修改LogisticDetail
export function updateLogisticDetail(data) {
  return request({
    url: '/LogisticDetail',
    method: 'put',
    data: data
  })
}

// 删除LogisticDetail
export function delLogisticDetail(logisticNo) {
  return request({
    url: '/LogisticDetail/' + logisticNo,
    method: 'delete'
  })
}

//根据订单编号获取物流详情
export function getLogisticDetailByOrderNo(orderNo) {
  return request({
    url: '/LogisticDetail/getListByOrderNo',
    method: 'post',
    data: orderNo
  })
}
